<?php
/**
 * Created by JetBrains PhpStorm.
 * User: avnovoselov
 * Date: 21.10.12
 * Time: 15:58
 * To change this template use File | Settings | File Templates.
 */
class storage
{
    private static $data = array();

    public static function set(array $data = array())
    {
        $default = array(
            'key'   => 'k',
            'val'   => 'v',
        );

        $data = array_merge($default, $data);
        self::$data[$data['key']]   = $data['val'];
    }

    public static function get($key)
    {
        return !empty(self::$data[$key]) ? self::$data[$key] : false;
    }
}
